﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="PanelDialog.aspx.cs" Inherits="PanelDialog" %>

<%@ Register Assembly="jQueryDotNetLib" Namespace="jQueryDotNetLib.Extenders" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="DemoTitleContentPlaceHolder" Runat="Server">
Panel Dialog
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="DemoContentPlaceHolder" Runat="Server">
    <asp:Panel ID="Panel1" runat="server">
        This is a normal panel
        <asp:Button ID="ShowDialog" runat="server" Text="Show" OnClientClick="return false;" />
        <asp:Button ID="HideDialog" runat="server" Text="Hide" OnClientClick="return false;" />
    </asp:Panel>

    <asp:Panel ID="Panel2" runat="server">
        This is a dialog panel
        <asp:Button ID="DialogButton" runat="server" OnClick="DialogButton_Click" Text="Click Me!" />
    </asp:Panel>
    
    
    <cc1:Dialog ID="Dialog1" 
    Modal="false" HideTitle="true" AutoOpen="false" 
    OpenTriggerSelector="#{ShowDialog}" CloseTriggerSelector="#{HideDialog}" 
    Selector="#{Panel2}" Resizable="true"
    AjaxOnly="true" Show="Blind" Hide="explode" ZIndex="1000"
    runat="server"
     />
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="SourceContentPlaceHolder" Runat="Server">
<pre>
    &lt;asp:Panel ID="Panel1" runat="server"&gt;
        This is a normal panel
        &lt;asp:Button ID="ShowDialog" runat="server" Text="Show" OnClientClick="return false;" /&gt;
        &lt;asp:Button ID="HideDialog" runat="server" Text="Hide" OnClientClick="return false;" /&gt;
    &lt;/asp:Panel&gt;
    &lt;asp:Panel ID="Panel2" runat="server"&gt;
        This is a dialog panel
        &lt;asp:Button ID="DialogButton" runat="server" OnClick="DialogButton_Click" Text="Click Me!" /&gt;
        &lt;asp:Label Text="Just A Label" ID="Label1" runat="server"&gt;&lt;/asp:Label&gt;
        &lt;asp:ListBox ID="ListBox1" runat="server"&gt;&lt;/asp:ListBox&gt;
        &lt;asp:ImageButton ID="ImageButton1" runat="server" /&gt;
    &lt;/asp:Panel&gt;
    
    &lt;cc1:Dialog ID="Dialog1" 
    Modal="false" HideTitle="true" AutoOpen="false" 
    OpenTriggerSelector="#{ShowDialog}" CloseTriggerSelector="#{HideDialog}" 
    Selector="#{Panel2}" Resizable="true"
    AjaxOnly="true" Show="Blind" Hide="explode"
    runat="server"
     /&gt;
</pre>
</asp:Content>

